<template>
    <div>
      <mc-questionnaire :before-submit="beforeSubmit" mc-watch="hello" style="position: absolute; left: 21.1045%; top: 151px;" mcks1="a" :mcvs1="1" mcks2="b" :mcvs2="1" mckg1="c" :mcvg1="3" mckg2="d" :mcvg2="2" :mc-config="{'saveUrl':'magical_lowcode/openapi/crud/goods_stats/save','getUrl':'magical_lowcode/openapi/crud/goods_stats/my-list','tmp':{'stage':'db','apiUuid':'','tableUuid':'254c423aadea42f1abb1f7d6907e78f7','fields':[{'title':'主键','name':'id'},{'title':'商品名称','name':'name'},{'title':'商品定价','name':'slider'},{'title':'创建日期','name':'createTime'},{'title':'成交价格','name':'realPrice'}]},'postContentType':'application/json','getContentType':'application/json'}">
        <template #body="scope">
          <el-col class="mc-ui-absolute-pane" mcstyle="ab-unit-top:px" :span="24"></el-col>
        </template>
        <template #bottom="scope">
          <el-col :span="24">
            <el-button type="primary" @click="scope.row.action=1">提交</el-button>
          </el-col>
        </template>
      </mc-questionnaire>
      <el-button @click="change">改变</el-button>
    </div>
</template>

<script>
import McQuestionnaire from './components/McQuestionnaire'

export default {
    data(){
        return {
            parentQuery:{pid:1},
            hello:""
		    }
    },
    components:{
        McQuestionnaire
    },
    methods : {
        beforeSubmit(param){
            return false;
        },
        change(){
          this.hello="ddd";
        },
        /*提交前回调*/
        beforeSubmitForm:function(formData){
            console.log(formData)
            return true;
        },
        focus:function(){
        },
        changeParentQuery(){
            this.parentQuery.pid = new Date().getTime()
            console.log(this.parentQuery)
        }
    }
}
</script>

<style>

</style>
